package test_3_15;

import java.util.Arrays;

public class four {
    public static void main(String[] args) {
        int []arr={1,2,3,1,1,1,2};
        Arrays.sort(arr);
        int max=arr.length/2;
        System.out.println(arr[max]);
    }
}
